package com.whq.thrift.api.gateway.db;

import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

public interface MethodInfoMapper {
	@Select("select * from t_method_info where method_status=1 ")
	@Results(value = { 
			@Result(property = "id", column = "id"), 
			@Result(property = "methodName", column = "method_name"),
			@Result(property = "isTob", column = "is_2b"), 
			@Result(property = "needVerifyTicket", column = "need_verify_ticket"),
			@Result(property = "verifyModuleId", column = "verify_module_id"),
			@Result(property = "verifyModuleMethod", column = "verify_module_method"),
			@Result(property = "signatureIgnoreParams", column = "signature_ignore_params"), 
			@Result(property = "methodStatus", column = "method_status"), 
			@Result(property = "timeoutMs", column = "timeout_ms"), 
			@Result(property = "maxRunCountPreSecond", column = "max_run_count_pre_second"), 
			@Result(property = "methodModuleId", column = "method_module_id")
		}
	)
	public List<MethodInfo> findAllValidMethods();

}
